package com.wss.day03.test2;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/4/22
 */
public class Test05 {
    public static void main(String[] args) {
        OrdinaryEmployee emp1 = new OrdinaryEmployee("张三", "E001", 5000);
        Manager manager1 = new Manager("李四", "M001", 10000, 2000);

        System.out.println("涨薪前信息");
        emp1.show();
        System.out.println("--------------------");
        manager1.show();

        System.out.println("开始涨薪");
        emp1.addSalary();
        manager1.addSalary();

        System.out.println("涨薪后信息");
        emp1.show();
        System.out.println("--------------------");
        manager1.show();
    }
}
